const recommend = require('../recommend/index')
const recommendModule = require('../modules/recommend/focusDetail')

// const Goods = new recommend.RecommendGoodsService
// const User = new recommend.RecommendUserService
async function main() {
  let list = (await recommendModule.getFocus({})).map(item => {
    return {
      userId: item.userId,
      goodsId: item.detailId
    }
  })
  // console.log(list)
  const server = new recommend.RecommendGoodsService(list, 'd9210f8d-ec20-4799-90b7-118d88c1d01c', 10)
  console.log(server.start())
}

main()
